import Vue from 'vue';

import App from './App.vue';

import vueRouter from "vue-router";

Vue.use(vueRouter);

import '../statics/mui/css/mui.css';

import Home from './components/Home.vue';
import car from './components/shopcar/car.vue';
import newslist from './components/news/newslist.vue';

var router =  new vueRouter({
  linkActiveClass:'mui-active',
  routes:[
    {path:'/Home',component:Home},
    {path:'/car',component:car},
    {path:'/news/newslist',component:newslist}
  ]
})

import '../statics/site.css';

import  'mint-ui/lib/style.min.css';

import mintui from 'mint-ui';
Vue.use(mintui);




import vueRource from 'vue-resource';
Vue.use(vueRource);


import moment from "moment";
Vue.filter('datafmt',function(input,fmtstring){
  return moment(input).format(fmtstring);
})

new Vue({
  el:'#app',
  router,
  render:(c) =>c(App)
  }
);
